<html>
<head>
</head>
<script src="//ajax.googleapis.com/ajax/libs/jquery/2.0.0/jquery.min.js"></script>
<script src="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.2/js/bootstrap.min.js"></script>
<script type="text/javascript"src="//code.jquery.com/jquery-1.11.2.min.js"></script>"
<script src="ex.js">

</script>

<body>
<img src="http://www.photoscartoon.com/wp-content/uploads/2014/06/tom-and-jerry-cartoons.gif" id="image1" onclick=diffImage(this) />

</body>
</html>